public class Demo02 {
    public static void main(String[] args) {
        long result = fun1(10);
        System.out.println(result);
    }

    public static long fun1(long n) {
        if (n == 1) {
            return 1;
        }
        return n * fun1(n - 1);
    }
}
